﻿using LimaLims.Core.Entity.Basic;
using LimaLims.Core.Entity.Equipment;
using LimaLims.Core.Entity.TestCenter;
using LimaLims.Core.Enum;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LimaLims.Core.Entity.Experiment
{
    /// <summary>
    /// 直阻试验
    /// </summary>
    [Comment("直阻试验信息")]
    public class DcResistance : DEntityTenant
    {
        /// <summary>
        /// 出厂编号
        /// </summary>
        [Comment("出厂编号")]
        public string FactoryNumbe { get; set; }

        /// <summary>
        /// 试验任务ID
        /// </summary>
        [Comment("试验任务ID")]
        public long? ExperimentTaskId { get; set; }
        public ExperimentTask ExperimentTask { get; set; }

        /// <summary>
        /// 设备Id
        /// </summary>
        [Comment("设备Id")]
        public long EquipmentInfoId { get; set; }
        public EquipmentInfo EquipmentInfo { get; set; }

        /// <summary>
        /// 环境温度
        /// </summary>
        [Comment("环境温度")]
        public float? AmbientTemperature { get; set; }

        /// <summary>
        /// 环境湿度
        /// </summary>
        [Comment("环境湿度")]
        public float? AmbientHumidity { get; set; }

        /// <summary>
        /// 分接位置
        /// </summary>
        [Comment("分接位置")]
        public int TappingGear { get; set; }

        /// <summary>
        /// 高压AB（Ω）
        /// </summary>
        [Comment("高压AB（Ω）")]
        public float? HighAB { get; set; }

        public float? HighBC { get; set; }

        public float? HighCA { get; set; }

        public float? HighUnbalanceRate { get; set; }

        /// <summary>
        /// 低压ab
        /// </summary>
        [Comment("低压ab")]
        public float? Lowab { get; set; }

        public float? Lowbc { get; set; }

        public float? Lowca { get; set; }

        public float? LowUnbalanceRate { get; set; }


        /// <summary>
        /// 相电阻a0电阻值	
        /// </summary>
        [Comment("相电阻a0电阻值")]
        public float? Lowa0 { get; set; }

        public float? Lowb0 { get; set; }

        public float? Lowc0 { get; set; }

        public float? Low0UnbalanceRate { get; set; }


        /// <summary>
        /// 高压侧相电阻A0电阻值	
        /// </summary>
        [Comment("高压侧相电阻A0电阻值")]
        public float? HighA0 { get; set; }

        public float? HighB0 { get; set; }

        public float? HighC0 { get; set; }

        public float? High0UnbalanceRate { get; set; }


        /// <summary>
        /// 被试绕组	
        /// </summary>
        [Comment("被试绕组")]
        public WindingMethod WindingMethod { get; set; }

        /// <summary>
        /// 试验结果
        /// </summary>
        [Comment("试验结果")]
        public ExperimentResult? Result { get; set; }

    }
}
